package lab02.test23;
import java.util.Date;
import java.text.SimpleDateFormat;
public class Dome {
    //当担重任，怎么格式化都行
    public static void main(String[] args) {
        Date now = new Date();//获取当前时间
        SimpleDateFormat f = new SimpleDateFormat("今天是："+"yyyy年MM月dd日");
        System.out.println(f.format(now));

        f = new SimpleDateFormat("a kk时mm分ss秒");
        System.out.println(f.format(now));

    }
}
